package com.sharemarking.wa.platform.dto.driverVerify;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.List;

/**
 * @author dxy
 */
public class DriverVerifyDto {
    private Integer id;
    private String name;
    private String headImg;
    private String orgName;
    private Integer orgId;
    private Integer examState;
    private String car;
    private String carType;
    private String carWeight;
    private String carNumber;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String rejectReason;
    private List<DriverAttachmentDto> verifyList;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public List<DriverAttachmentDto> getVerifyList() {
        return verifyList;
    }

    public void setVerifyList(List<DriverAttachmentDto> verifyList) {
        this.verifyList = verifyList;
    }

    public Integer getExamState() {
        return examState;
    }

    public void setExamState(Integer examState) {
        this.examState = examState;
    }

    public String getRejectReason() {
        if (examState == 2) {
            return rejectReason;
        }
        return null;
    }

    public void setRejectReason(String rejectReason) {
        this.rejectReason = rejectReason;
    }

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }


    public String getCar() {
        return car;
    }

    public void setCar(String car) {
        this.car = car;
    }

    public String getCarWeight() {
        return carWeight;
    }

    public void setCarWeight(String carWeight) {
        this.carWeight = carWeight;
    }

    public String getCarType() {
        return carType;
    }

    public void setCarType(String carType) {
        this.carType = carType;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }
}
